package Program;

public abstract class Employee {
    private String name;
    private int birthday;
    public Employee(String name, int birthday) {
        this.name = name;
        this.birthday = birthday;
    }

    public float getSalary(int month) {
        float salary = 0;
        if (month == birthday) {
            salary += 0;
        }
        salary += countSalary();
        return salary;
    }

    public abstract float countSalary();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getBirthday() {
        return birthday;
    }

    public void setBirthday(int birthday) {
        this.birthday = birthday;
    }
}
